package com.u.social.article.controller;


import com.u.social.article.model.CommentDTO;
import com.u.social.article.service.IArticleCommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Alex Wu
 * @since 2025-02-24
 */
@RestController
@RequestMapping("/article-comments")
public class ArticleCommentsController {

    @Autowired
    private IArticleCommentsService articleCommentsService;

    @PostMapping("/")
    public Boolean create(@RequestBody CommentDTO commentDTO) {
        return articleCommentsService.saveComment(commentDTO);
    }

}
